package com.jic.point.api;

import com.jic.point.common.RestResult;
import com.jic.point.rest.request.Present;
import com.jic.point.rest.request.PresentList;
import com.jic.point.rest.response.PresentListResponse;
import com.jic.point.rest.response.PresentResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @ClassName PresentApi
 * TODO
 * @Description
 * @Author chenhongfeng
 * @Date 2020/11/25 17:57
 * @Version 1.0
 **/
@FeignClient(name = "jic-point", path = "/api/point/present")
@Api(tags = " [礼品接口接口]")
public interface PresentApi {


    /**
     * 查询各礼品平台的剩余预算
     * 需求方预算余额查询
     * @param present
     * @return
     */
    @PostMapping("/query")
    @ApiOperation(value = "  查询各礼品平台的剩余预算")
RestResult<PresentResponse> queryPresent(Present present);

    /**
     * 礼品列表查询
     * 权益活动配置礼品-礼品列表查询
     * @param present
     * @return
     */
    @PostMapping("/listQuery")
    @ApiOperation(value = "  查询各礼品平台的剩余预算")
    RestResult<PresentListResponse> listPresent(PresentList present);



}
